package com.wanlian.service;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.Banner;
import com.wanlian.model.PageResult;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;


import java.util.List;

public interface BannerServices {
    ResultModel doAdd(Banner banner);

    void doedit(Banner banner);

    Banner queryBanner(int id);

    List<Banner> queryAllForApp();

    List<Banner> queryBannerList(Page page);

    ResultModel queryBannersList(PageCondition pageCondition);

    ResultModel doSetIsTop(int id);

    ResultModel doSetEnable(int id);

    ResultModel doSetDisable(int id);

    ResultModel doSetNotTop(int id);

    ResultModel doDelete(int id);

    ResultModel doUpdate(Banner banner);
}
